package com.service.infocenter.imp;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mapper.infocenter.MyCollectionMapper;
import com.mapper.information.InformationMapper;
import com.po.MyCollectionInfo;
import com.service.infocenter.MyCollectionService;
@Service
public class MyCollectionServiceImp implements MyCollectionService{
    @Resource(name="myCollectionMapper")
    private MyCollectionMapper myCollectionMapper;
    @Resource(name = "informationMapper")
	private InformationMapper informationMapper;
	@Override
	public List<MyCollectionInfo> getMyCollectionList(MyCollectionInfo myCollectionInfo) {
		List<MyCollectionInfo> list = myCollectionMapper.getMyCollectionList(myCollectionInfo);
		return list;
	}

	@Override
	public int getMyCollectionCount(MyCollectionInfo myCollectionInfo) {
		int i=myCollectionMapper.getMyCollectionCount(myCollectionInfo);
		return i;
	}

	@Override
	public int deleteMyCollection(MyCollectionInfo myCollectionInfo) {
		int i = myCollectionMapper.deleteMyCollection(myCollectionInfo);		
		return i;
	}

	@Override
	public int deleteMyCollections(String[] ids) {
		int i=myCollectionMapper.deleteMyCollections(ids);
		return i;
	}

	@Override
	public int getCollectionCountByID(MyCollectionInfo myCollectionInfo) {
		int i=myCollectionMapper.getCollectionCountByID(myCollectionInfo);
		return i;
	}

	@Override
	public int addMyCollection(MyCollectionInfo myCollectionInfo) {
		int i=myCollectionMapper.addMyCollection(myCollectionInfo);
		return i;
	}

}
